<?php $this->load->view('sys_header');?>


<div class="nav">
    <h2><a href="#">TAYCMS后台管理</a> > <a href="<?php echo made_admin_url('main/mainfra');?>">首页</a>  > <a href="#">网站核心设置</a></h2>
</div>



<div class="contenter" >
    <div class="itemtitle"><h3>网站核心设置</h3></div>
    <div class="ml"></div>

    <form name="cpform" method="post" autocomplete="off" action="<?php echo made_admin_url('system/setting');?>" id="cpform" >

        <table  width="100%" border="0" align="left" cellpadding="5" cellspacing="0" >
            <tr>
                <td width="13%" height="25">站点名称</td>
                <td width="87%" height="25"> <input name="sitename" type="text" id="sitename" value="<?php echo $sitename;?>" size="38" class="inputborder"></td>
            </tr>
            <tr>
                <td height="25">网站地址</td>
                <td height="25"> <input class="border" name="siteallurl" type="text" id="newsurl4" value="<?php echo $siteallurl;?>" size="38">
                    <font color="#666666">(结尾需加“/”，如：http://www.taygod.com/)</font></td>
            </tr>
            <tr>
                <td height="25">网站风格</td>
                <td height="25">
                    <select class="border" name="theme" id="theme">
                        <?php foreach ($theme_dir as $value):?>
                        <option value="<?php echo $value?>" <?php if ($theme == $value) :?>selected="selected" <?php endif;?> ><?php echo $value?></option>
                        <?php endforeach;?>
                    </select>


                    <font color="#666666">(网站风格)</font></td>
            </tr>
            <tr>
                <td height="25">管理员邮箱</td>
                <td height="25"> <input class="border" name="adminemail" type="text" id="adminemail" value="<?php echo $adminemail;?>" size="38"></td>
            </tr>
            <tr>
                <td height="25">网站关键字</td>
                <td height="25"><input class="border" name="sitekey" type="text" id="sitekey" value="<?php echo $sitekey;?>" size="38"></td>
            </tr>
            <tr>
                <td height="25">网站描述</td>
                <td height="25"><textarea class="border txt" name="siteintro" cols="80" rows="5" id="siteintro"><?php echo $siteintro;?></textarea></td>
            </tr>
            <tr>
                <td height="25">备案编号</td>
                <td height="25"><input class="border" name="miibeian" type="text" id="miibeian" value="<?php echo $miibeian;?>" size="38" /></td>
            </tr>

            <tr>
                <td height="25">首页模式</td>


                <td height="25"><input type="radio" name="indexpagedt" value="1"  <?php if($indexpagedt == 1): ?>checked="checked" <?php endif; ?>>
                    伪静态
                    <input name="indexpagedt" type="radio" value="0" <?php if($indexpagedt == 0): ?>checked="checked" <?php endif; ?> />
                    动态模式
                    <font color="#666666">伪静态可去掉地址中的index.php 静态规则请查看 根目录下的.htaccess 文件</font></td>
            </tr>

            <tr>
                <td height="25">伪静态后缀</td>
                <td height="25">
                    <font color="#666666">
                        <select class="border" name="rewritetype" >
                            <option value="" <?php if($rewritetype == ''): ?>selected="selected"<?php endif; ?> >目录形式</option>
                            <option value=".html" <?php if($rewritetype == '.html'): ?>selected="selected"<?php endif; ?> >.html</option>
                        </select>
                        <input name="oldindextype" type="hidden" id="oldindextype" value="<?php echo $rewritetype;?>">
                        <font color="#666666">(只有选择伪静态模式时有效，暂时只支持.html 以后会增加。 默认不使用后缀名 以目录形式访问)</font></td>
            </tr>
            <tr>
                <td height="25">附件路径</td>
                <td height="25"><input class="border" name="upload_path" type="text" id="upload_path" value="<?php echo $upload_path;?>" size="38" />
                    <font color="#666666">(文件上传路径。该路径必须是可写的，相对路径和绝对路径均可以。)</font></td>
            </tr>
            <tr>
                <td height="25">允许类型</td>
                <td height="25"><input class="border" name="allowed_types" type="text" id="allowed_types" value="<?php echo $allowed_types;?>" size="38" />
                    <font color="#666666">(允许上传文件的MIME类型；允许多个类型用竖线‘|’分开)</font></td>
            </tr>
            <tr>
                <td height="25">最大尺寸</td>
                <td height="25"><input class="border" name="max_size" type="text" id="max_size" value="<?php echo $max_size;?>" size="38" />
                    <font color="#666666">(允许上传文件大小的最大值（以K为单位）。)</font></td>
            </tr>
            <tr>
                <td height="25">重命名文件名</td>
                <td height="25"><input  name="encrypt_name" type="radio" value="1" <?php if($encrypt_name == 1): ?>checked="checked"<?php endif; ?> />
                    是
                    <input type="radio" name="encrypt_name" value="0"  <?php if($encrypt_name == 0): ?>checked="checked"<?php endif; ?> />

                    否  <font color="#666666"> (选择是上传的文件将被重命名为随机的加密字符串。)</font></td>
            </tr>
            <tr>
                <td height="25">附件目录格式</td>
                <td height="25">
                    <select class="border" name="upload_path_format"  >
                        <option value="Y-m-d" <?php if($upload_path_format == 'Y-m-d'): ?>selected="selected"<?php endif; ?>>2005-01-27</option>
                        <option value="Y/m-d" <?php if($upload_path_format == 'Y/m-d'): ?>selected="selected"<?php endif; ?>>2005/01-27</option>
                        <option value="Y/m/d" <?php if($upload_path_format == 'Y/m/d'): ?>selected="selected"<?php endif; ?>>2005/01/27</option>
                        <option value="Ymd" <?php if($upload_path_format == 'Ymd'): ?>selected="selected"<?php endif; ?>>20050127</option>
                        <option value="" <?php if($upload_path_format == ''): ?>selected="selected"<?php endif; ?>>不设置目录</option>
                    </select> <font color="#666666">(如Y-m-d，Y/m-d，Y/m/d，Ymd等形式)</font></td>
            </tr>

            <tr>
                <td height="25">关闭网站</td>
                <td height="25"><input type="radio" name="close" value="1" <?php if($close == '1'): ?> checked="checked" <?php endif; ?>>
                    是
                    <input type="radio" name="close" value="0" <?php if($close == '0'): ?> checked="checked" <?php endif; ?> />
                    否<font color="#666666">(关闭网站后前台页面都将显示下面提示)</font></td>
            </tr>
            <tr>
                <td height="25">关闭网站提示内容</td>
                <td height="25"> <textarea class="border txt" name="closereason" cols="80" rows="5" id="closereason"><?php echo $closereason;?></textarea></td>
            </tr>
            <tr>
                <td height="25">后台入口</td>
                <td height="25"><input class="border" name="admin_point" type="text" id="admin_point" value="<?php echo $admin_point;?>" size="38" /> <font color="#666666">(后台入口路径 默认：admin) <br />请手动修改以下两处 1. core/app/controllers/admin 目录名 2.core/app/config/routes.php  中$route['admin'] = "admin/login"; 将admin改为新名称 </font></td>
            </tr>
            <tr>
                <td height="25" colspan="2" align="center"><label>
                    <input name="submit" type="submit" id="submit" value="提交" class="sub_btn" />
                 </label></td>
            </tr>
        </table>


    </form>


</div>


<div class="clear"></div>


<?php $this->load->view('sys_footer');?>